<?php
//----------------------------------------------------------------------------------------------------------------------------------------------------------
$thongbao="";
if(isset($_GET['hc'])){
    $thongbao="<font color=red><b>Truy cập bị hạn chế.</b></font>";
}
if(isset($_GET['ht'])){
    $thongbao="<font color=red><b>Chức năng đang được hoàn thiện.</b></font>";
}
$stringten="";
$stringma="";
    
    $sql_sv="SELECT ma_sv,hoten_sv FROM tbl_sinhvien WHERE chinhquy_sv IS NOT NULL";
    $ex_sv=mysql_query($sql_sv);
    if($ex_sv){
      while($rows=mysql_fetch_array($ex_sv))
        $dstensv[]=$rows;  
    }
    if(isset($dstensv)){
        foreach($dstensv as $sv){
            $ten=$sv['hoten_sv'];
            $ma=$sv['ma_sv'];
            $stringten=$stringten.'"'.$ten.'",';
            $stringma=$stringma.'"'.$ma.'",';
        }    
    }
$smarty->assign("stringten",$stringten);
$smarty->assign("stringma",$stringma);
$smarty->assign('ma_pq',$_SESSION['ma_pq']);
//------------------------------------------------------------------------------------------------------------------------------------------------------------
$smarty->assign('thongbao',$thongbao);
$smarty->display("indexdefault.tpl")
?>